#include<stdio.h>
int inverse(int n)
{
    int s=0;
    while(n>0)
    {
        s=s*10+n%10;
        n=n/10;
    }
    return s;
}
#include<stdio.h>
int main()
{
	int m;
	scanf("%d",&m);
	
	if(m==inverse(m))
	printf("yes");
	else
	printf("no");
	
	return 0;
}
